package com.order.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.common.R;
import com.order.po.order_record;
import com.order.po.return_order_record;
import com.order.service.return_order_recordService;

@Controller
public class return_order_recordController {
	@Autowired
	  private return_order_recordService return_order_recordService;
	
	 @RequestMapping({"/get_return_record_byid"})
	   @ResponseBody
	   public R get_return_record_byid(String parameter)
	   {
		 R r = R.ok().put("data", this.return_order_recordService.get_return_record_byid(parameter));
	     return r;
	   }
	 
	 @RequestMapping({"/insert_returnrecord"})
	   @ResponseBody
	   public List insert_returnrecord(@RequestBody List<return_order_record> list)
	   {
		  this.return_order_recordService.insert_returnrecord(list);
		return list;
	   }
}
